<?php $this->display('inc_top.php') ?>
<script type="text/javascript">
$(function(){
  $('.search form input[name=username]')
  .focus(function(){
    if(this.value=='用户名') this.value='';
  })
  .blur(function(){
    if(this.value=='') this.value='用户名';
  })
  .keypress(function(e){
    if(e.keyCode==13) $(this).closest('form').submit();
  });
  
 
 
  
  $('.chazhao').click(function(){
    $(this).closest('form').submit();
  });
  
  $('.bottompage a[href]').live('click', function(){
    $('.biao-cont').load($(this).attr('href'));
    return false;
  });

});
function recordSearch(err, data){
  if(err){
    alert(err);
  }else{
    $('.biao-cont').html(data);
  }
}
function recodeRefresh(){
  $('.biao-cont').load(
    $('.bottompage .pagecurrent').attr('href')
  );
}

function deleteBet(err, code){
  if(err){
    alert(err);
  }else{
    recodeRefresh();
  }
}
</script>
<div class="pagemain" style="width:950px;">
  <div class="search">
      <form action="/index.php/team/searchTeamReport/<?=$this->userType?>" dataType="html" call="recordSearch" target="ajax">
     
  
       <select name="userType" >
            <option value="0" selected>所有人</option>
            <option value="1">我自己</option>
           
            <option value="3">所有下线</option>
        </select>
       
        <input height="20" value="用户名" name="username"/>
      <input type="text" name="fromTime" class="datainput"  value="<?=$this->iff($_REQUEST['fromTime'],$_REQUEST['fromTime'],date('Y-m-d',$GLOBALS['fromTime']))?>"/>至<input type="text" name="toTime"  class="datainput" value="<?=$this->iff($_REQUEST['toTime'],$_REQUEST['toTime'],date('Y-m-d',$GLOBALS['toTime']))?>"/>
         
      <input type="button" value="查 询" class="btn chazhao">
  </form> 
    </div>
    <div class="display biao-cont">
      <!--下注列表-->
        <?php $this->display('team/team-report-list.php'); ?>
        <!--下注列表 end -->
    </div>

</div>
<div id="wanjinDialog"></div>
</body></html>
  
 